//
//  WriteLetterViewController.m
//  DirectProDuct
//
//  Created by hl on 16/1/22.
//  Copyright (c) 2016年 ping. All rights reserved.
//

#import "WriteLetterViewController.h"
#import "WriteLetterView.h"
@interface WriteLetterViewController ()<WriteLetterViewDelegate>{
    WriteLetterView *mainView;
}

@end

@implementation WriteLetterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if ([self.typeStr isEqual:@"草稿箱"]) {
        [self drawNavWithTitle:@"草稿箱"];
    }else{
        [self drawNavWithTitle:@"写  信"];
    }
    
    [self drawBackButton];
    [self drawView];
    // Do any additional setup after loading the view.
}
-(void)drawView{
    mainView = [[WriteLetterView alloc] initWithFrame:CGRectMake(0, 64+14, KScreenWidth, KScreenHeight - 78)];
    mainView.delegate = self;
    [self.view addSubview:mainView];
}
-(void)clicked:(UIButton *)btn{
    if (btn.tag == 0) {
        //发送
    }else if (btn.tag == 1){
        //存草稿
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
